package com.example.springbootdemo.strategy.optimizeifelse.strategy;

/**
 * @author ：cici
 * @date ：Created in 2019/3/25 17:33
 */
public class Context {

    private DoAccountThing doAccountThing;

    public void doSomething(Integer type){
        doAccountThing = Factory.getInstance().creator(type);
        doAccountThing.execute();
    }

    public DoAccountThing getDoAccountThing() {
        return doAccountThing;
    }

    public void setDoAccountThing(DoAccountThing doAccountThing) {
        this.doAccountThing = doAccountThing;
    }
}
